.class public Lcom/nostra13/universalimageloader/core/e$b;
.super Ljava/lang/Object;
.source "ImageLoaderConfiguration.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nostra13/universalimageloader/core/e;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "b"
.end annotation


# static fields
.field public static final y:Lcom/nostra13/universalimageloader/core/assist/QueueProcessingType;


# instance fields
.field private a:Landroid/content/Context;

.field private b:I

.field private c:I

.field private d:I

.field private e:I

.field private f:Les/xg0;

.field private g:Ljava/util/concurrent/Executor;

.field private h:Ljava/util/concurrent/Executor;

.field private i:Z

.field private j:Z

.field private k:I

.field private l:I

.field private m:Z

.field private n:Lcom/nostra13/universalimageloader/core/assist/QueueProcessingType;

.field private o:I

.field private p:J

.field private q:I

.field private r:Les/hg0;

.field private s:Les/yf0;

.field private t:Les/fg0;

.field private u:Lcom/nostra13/universalimageloader/core/download/ImageDownloader;

.field private v:Les/lg0;

.field private w:Lcom/nostra13/universalimageloader/core/c;

.field private x:Z


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    sget-object v0, Lcom/nostra13/universalimageloader/core/assist/QueueProcessingType;->FIFO:Lcom/nostra13/universalimageloader/core/assist/QueueProcessingType;

    sput-object v0, Lcom/nostra13/universalimageloader/core/e$b;->y:Lcom/nostra13/universalimageloader/core/assist/QueueProcessingType;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 4

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->b:I

    .line 3
    iput v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->c:I

    .line 4
    iput v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->d:I

    .line 5
    iput v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->e:I

    const/4 v1, 0x0

    .line 6
    iput-object v1, p0, Lcom/nostra13/universalimageloader/core/e$b;->f:Les/xg0;

    .line 7
    iput-object v1, p0, Lcom/nostra13/universalimageloader/core/e$b;->g:Ljava/util/concurrent/Executor;

    .line 8
    iput-object v1, p0, Lcom/nostra13/universalimageloader/core/e$b;->h:Ljava/util/concurrent/Executor;

    .line 9
    iput-boolean v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->i:Z

    .line 10
    iput-boolean v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->j:Z

    const/4 v2, 0x3

    .line 11
    iput v2, p0, Lcom/nostra13/universalimageloader/core/e$b;->k:I

    .line 12
    iput v2, p0, Lcom/nostra13/universalimageloader/core/e$b;->l:I

    .line 13
    iput-boolean v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->m:Z

    .line 14
    sget-object v2, Lcom/nostra13/universalimageloader/core/e$b;->y:Lcom/nostra13/universalimageloader/core/assist/QueueProcessingType;

    iput-object v2, p0, Lcom/nostra13/universalimageloader/core/e$b;->n:Lcom/nostra13/universalimageloader/core/assist/QueueProcessingType;

    .line 15
    iput v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->o:I

    const-wide/16 v2, 0x0

    .line 16
    iput-wide v2, p0, Lcom/nostra13/universalimageloader/core/e$b;->p:J

    .line 17
    iput v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->q:I

    .line 18
    iput-object v1, p0, Lcom/nostra13/universalimageloader/core/e$b;->r:Les/hg0;

    .line 19
    iput-object v1, p0, Lcom/nostra13/universalimageloader/core/e$b;->s:Les/yf0;

    .line 20
    iput-object v1, p0, Lcom/nostra13/universalimageloader/core/e$b;->t:Les/fg0;

    .line 21
    iput-object v1, p0, Lcom/nostra13/universalimageloader/core/e$b;->u:Lcom/nostra13/universalimageloader/core/download/ImageDownloader;

    .line 22
    iput-object v1, p0, Lcom/nostra13/universalimageloader/core/e$b;->w:Lcom/nostra13/universalimageloader/core/c;

    .line 23
    iput-boolean v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->x:Z

    .line 24
    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    iput-object p1, p0, Lcom/nostra13/universalimageloader/core/e$b;->a:Landroid/content/Context;

    return-void
.end method

.method static synthetic a(Lcom/nostra13/universalimageloader/core/e$b;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->a:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic b(Lcom/nostra13/universalimageloader/core/e$b;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->b:I

    return p0
.end method

.method private b()V
    .locals 5

    .line 2
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->g:Ljava/util/concurrent/Executor;

    const/4 v1, 0x1

    if-nez v0, :cond_0

    .line 3
    iget v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->k:I

    iget v2, p0, Lcom/nostra13/universalimageloader/core/e$b;->l:I

    iget-object v3, p0, Lcom/nostra13/universalimageloader/core/e$b;->n:Lcom/nostra13/universalimageloader/core/assist/QueueProcessingType;

    invoke-static {v0, v2, v3}, Lcom/nostra13/universalimageloader/core/a;->a(IILcom/nostra13/universalimageloader/core/assist/QueueProcessingType;)Ljava/util/concurrent/Executor;

    move-result-object v0

    iput-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->g:Ljava/util/concurrent/Executor;

    goto :goto_0

    .line 4
    :cond_0
    iput-boolean v1, p0, Lcom/nostra13/universalimageloader/core/e$b;->i:Z

    .line 5
    :goto_0
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->h:Ljava/util/concurrent/Executor;

    if-nez v0, :cond_1

    .line 6
    iget v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->k:I

    iget v1, p0, Lcom/nostra13/universalimageloader/core/e$b;->l:I

    iget-object v2, p0, Lcom/nostra13/universalimageloader/core/e$b;->n:Lcom/nostra13/universalimageloader/core/assist/QueueProcessingType;

    invoke-static {v0, v1, v2}, Lcom/nostra13/universalimageloader/core/a;->a(IILcom/nostra13/universalimageloader/core/assist/QueueProcessingType;)Ljava/util/concurrent/Executor;

    move-result-object v0

    iput-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->h:Ljava/util/concurrent/Executor;

    goto :goto_1

    .line 7
    :cond_1
    iput-boolean v1, p0, Lcom/nostra13/universalimageloader/core/e$b;->j:Z

    .line 8
    :goto_1
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->s:Les/yf0;

    if-nez v0, :cond_3

    .line 9
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->t:Les/fg0;

    if-nez v0, :cond_2

    .line 10
    invoke-static {}, Lcom/nostra13/universalimageloader/core/a;->b()Les/fg0;

    move-result-object v0

    iput-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->t:Les/fg0;

    .line 11
    :cond_2
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->a:Landroid/content/Context;

    iget-object v1, p0, Lcom/nostra13/universalimageloader/core/e$b;->t:Les/fg0;

    iget-wide v2, p0, Lcom/nostra13/universalimageloader/core/e$b;->p:J

    iget v4, p0, Lcom/nostra13/universalimageloader/core/e$b;->q:I

    invoke-static {v0, v1, v2, v3, v4}, Lcom/nostra13/universalimageloader/core/a;->a(Landroid/content/Context;Les/fg0;JI)Les/yf0;

    move-result-object v0

    iput-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->s:Les/yf0;

    .line 12
    :cond_3
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->r:Les/hg0;

    if-nez v0, :cond_4

    .line 13
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->a:Landroid/content/Context;

    iget v1, p0, Lcom/nostra13/universalimageloader/core/e$b;->o:I

    invoke-static {v0, v1}, Lcom/nostra13/universalimageloader/core/a;->a(Landroid/content/Context;I)Les/hg0;

    move-result-object v0

    iput-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->r:Les/hg0;

    .line 14
    :cond_4
    iget-boolean v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->m:Z

    if-eqz v0, :cond_5

    .line 15
    new-instance v0, Les/ig0;

    iget-object v1, p0, Lcom/nostra13/universalimageloader/core/e$b;->r:Les/hg0;

    invoke-static {}, Les/bh0;->a()Ljava/util/Comparator;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Les/ig0;-><init>(Les/hg0;Ljava/util/Comparator;)V

    iput-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->r:Les/hg0;

    .line 16
    :cond_5
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->u:Lcom/nostra13/universalimageloader/core/download/ImageDownloader;

    if-nez v0, :cond_6

    .line 17
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/nostra13/universalimageloader/core/a;->a(Landroid/content/Context;)Lcom/nostra13/universalimageloader/core/download/ImageDownloader;

    move-result-object v0

    iput-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->u:Lcom/nostra13/universalimageloader/core/download/ImageDownloader;

    .line 18
    :cond_6
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->v:Les/lg0;

    if-nez v0, :cond_7

    .line 19
    iget-boolean v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->x:Z

    invoke-static {v0}, Lcom/nostra13/universalimageloader/core/a;->a(Z)Les/lg0;

    move-result-object v0

    iput-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->v:Les/lg0;

    .line 20
    :cond_7
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->w:Lcom/nostra13/universalimageloader/core/c;

    if-nez v0, :cond_8

    .line 21
    invoke-static {}, Lcom/nostra13/universalimageloader/core/c;->t()Lcom/nostra13/universalimageloader/core/c;

    move-result-object v0

    iput-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->w:Lcom/nostra13/universalimageloader/core/c;

    :cond_8
    return-void
.end method

.method static synthetic c(Lcom/nostra13/universalimageloader/core/e$b;)Lcom/nostra13/universalimageloader/core/assist/QueueProcessingType;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->n:Lcom/nostra13/universalimageloader/core/assist/QueueProcessingType;

    return-object p0
.end method

.method static synthetic d(Lcom/nostra13/universalimageloader/core/e$b;)Les/yf0;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->s:Les/yf0;

    return-object p0
.end method

.method static synthetic e(Lcom/nostra13/universalimageloader/core/e$b;)Les/hg0;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->r:Les/hg0;

    return-object p0
.end method

.method static synthetic f(Lcom/nostra13/universalimageloader/core/e$b;)Lcom/nostra13/universalimageloader/core/c;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->w:Lcom/nostra13/universalimageloader/core/c;

    return-object p0
.end method

.method static synthetic g(Lcom/nostra13/universalimageloader/core/e$b;)Lcom/nostra13/universalimageloader/core/download/ImageDownloader;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->u:Lcom/nostra13/universalimageloader/core/download/ImageDownloader;

    return-object p0
.end method

.method static synthetic h(Lcom/nostra13/universalimageloader/core/e$b;)Les/lg0;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->v:Les/lg0;

    return-object p0
.end method

.method static synthetic i(Lcom/nostra13/universalimageloader/core/e$b;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->i:Z

    return p0
.end method

.method static synthetic j(Lcom/nostra13/universalimageloader/core/e$b;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->j:Z

    return p0
.end method

.method static synthetic k(Lcom/nostra13/universalimageloader/core/e$b;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->x:Z

    return p0
.end method

.method static synthetic l(Lcom/nostra13/universalimageloader/core/e$b;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->c:I

    return p0
.end method

.method static synthetic m(Lcom/nostra13/universalimageloader/core/e$b;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->d:I

    return p0
.end method

.method static synthetic n(Lcom/nostra13/universalimageloader/core/e$b;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->e:I

    return p0
.end method

.method static synthetic o(Lcom/nostra13/universalimageloader/core/e$b;)Les/xg0;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->f:Les/xg0;

    return-object p0
.end method

.method static synthetic p(Lcom/nostra13/universalimageloader/core/e$b;)Ljava/util/concurrent/Executor;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->g:Ljava/util/concurrent/Executor;

    return-object p0
.end method

.method static synthetic q(Lcom/nostra13/universalimageloader/core/e$b;)Ljava/util/concurrent/Executor;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->h:Ljava/util/concurrent/Executor;

    return-object p0
.end method

.method static synthetic r(Lcom/nostra13/universalimageloader/core/e$b;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->k:I

    return p0
.end method

.method static synthetic s(Lcom/nostra13/universalimageloader/core/e$b;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/nostra13/universalimageloader/core/e$b;->l:I

    return p0
.end method


# virtual methods
.method public a(I)Lcom/nostra13/universalimageloader/core/e$b;
    .locals 2

    if-lez p1, :cond_1

    const/16 v0, 0x64

    if-ge p1, v0, :cond_1

    .line 2
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->r:Les/hg0;

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    new-array v0, v0, [Ljava/lang/Object;

    const-string v1, "memoryCache() and memoryCacheSize() calls overlap each other"

    .line 3
    invoke-static {v1, v0}, Les/ah0;->d(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 4
    :cond_0
    invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Runtime;->maxMemory()J

    move-result-wide v0

    long-to-float v0, v0

    int-to-float p1, p1

    const/high16 v1, 0x42c80000    # 100.0f

    div-float/2addr p1, v1

    mul-float v0, v0, p1

    float-to-int p1, v0

    .line 5
    iput p1, p0, Lcom/nostra13/universalimageloader/core/e$b;->o:I

    return-object p0

    .line 6
    :cond_1
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "availableMemoryPercent must be in range (0 < % < 100)"

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public a(Lcom/nostra13/universalimageloader/core/c;)Lcom/nostra13/universalimageloader/core/e$b;
    .locals 0

    .line 13
    iput-object p1, p0, Lcom/nostra13/universalimageloader/core/e$b;->w:Lcom/nostra13/universalimageloader/core/c;

    return-object p0
.end method

.method public a(Lcom/nostra13/universalimageloader/core/download/ImageDownloader;)Lcom/nostra13/universalimageloader/core/e$b;
    .locals 0

    .line 12
    iput-object p1, p0, Lcom/nostra13/universalimageloader/core/e$b;->u:Lcom/nostra13/universalimageloader/core/download/ImageDownloader;

    return-object p0
.end method

.method public a(Les/yf0;)Lcom/nostra13/universalimageloader/core/e$b;
    .locals 6

    .line 7
    iget-wide v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->p:J

    const/4 v2, 0x0

    const-wide/16 v3, 0x0

    cmp-long v5, v0, v3

    if-gtz v5, :cond_0

    iget v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->q:I

    if-lez v0, :cond_1

    :cond_0
    new-array v0, v2, [Ljava/lang/Object;

    const-string v1, "diskCache(), diskCacheSize() and diskCacheFileCount calls overlap each other"

    .line 8
    invoke-static {v1, v0}, Les/ah0;->d(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 9
    :cond_1
    iget-object v0, p0, Lcom/nostra13/universalimageloader/core/e$b;->t:Les/fg0;

    if-eqz v0, :cond_2

    new-array v0, v2, [Ljava/lang/Object;

    const-string v1, "diskCache() and diskCacheFileNameGenerator() calls overlap each other"

    .line 10
    invoke-static {v1, v0}, Les/ah0;->d(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 11
    :cond_2
    iput-object p1, p0, Lcom/nostra13/universalimageloader/core/e$b;->s:Les/yf0;

    return-object p0
.end method

.method public a()Lcom/nostra13/universalimageloader/core/e;
    .locals 2

    .line 14
    invoke-direct {p0}, Lcom/nostra13/universalimageloader/core/e$b;->b()V

    .line 15
    new-instance v0, Lcom/nostra13/universalimageloader/core/e;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/nostra13/universalimageloader/core/e;-><init>(Lcom/nostra13/universalimageloader/core/e$b;Lcom/nostra13/universalimageloader/core/e$a;)V

    return-object v0
.end method
